<!DOCTYPE html>
<html lang="en" ng-app="">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="angular.min.js"></script>

</head>
<body ng-init="a=1">
<!--ng-switch 需要搭配ng-switch-when-->
<div ng-switch="a">
    <span ng-switch-when="1">男</span><span ng-switch-when="2">女</span><span ng-switch-when="34">不知道</span>
</div>
</body>
</html>